package com.by.bean;

import com.by.common.group.ISave;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("货代")
public class Freight {
    @ApiModelProperty("货代id")
    int id;
    @ApiModelProperty("货代公司名称")
    String freight_forwarding_company;
    @ApiModelProperty("联系人")
    String contact_person;
    @ApiModelProperty("联系人电话")
    String telephone;
    @ApiModelProperty("联系人邮箱")
    String email;
    @ApiModelProperty("运输方式")
    String transportation_method ;
    @ApiModelProperty("航线")
    String route;
    @ApiModelProperty("账号")
    @NotBlank(message = "账号不能为空！", groups = {ISave.class})
    String account;
    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空！", groups = {ISave.class})
    String password;
}
